package com.wx.chapter16.draw.tankgame;

import javax.swing.*;

/**
 * @Author : 佩萁
 * Description :
 * @Create : 2023/8/14 - 18:56
 */
public class HspTankGame01 extends JFrame {
    //定义MyPanel
    MyPanel mp = null;

    public static void main(String[] args) {
        HspTankGame01 hspTankGame01 = new HspTankGame01();
    }
    public HspTankGame01(){//无参构造器默认加载
        mp = new MyPanel();
        this.add(mp);//把画板放进窗口区域
        this.setSize(1000,750);
        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        this.setVisible(true);
    }
}
